package com.lemontree.spring4.day05web.cotroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: YLBG-YCY-1325
 * @Description:
 * @Date: 2017/8/29
 */
@Controller
public class HomeController {

    @RequestMapping(value = "/",method = RequestMethod.GET)
    public String home(){
        System.out.println("goto home page");
        return "home";
    }
}
